package com.fanpan26.jls.spi;

import org.apache.dubbo.common.extension.ExtensionLoader;
public class Human$Adaptive implements com.fanpan26.jls.spi.Human {

    public java.lang.String sayHello(org.apache.dubbo.common.URL arg0) {
        if (arg0 == null) throw new IllegalArgumentException("url == null");
        org.apache.dubbo.common.URL url = arg0;
        String extName = url.getParameter("human", "human");
        if (extName == null) {
            throw new IllegalStateException("Failed to get extension (com.fanpan26.jls.spi.Human) name from url (" + url.toString() + ") use keys([human])");
        }
        com.fanpan26.jls.spi.Human extension = ExtensionLoader.getExtensionLoader(com.fanpan26.jls.spi.Human.class).getExtension(extName);
        return extension.sayHello(arg0);
    }
}